appchooserdialog: use new GLib API to modify positioning
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 15 Dec 2010 10:58:29 +0000 (11:58 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Dec 2010 15:08:21 +0000 (16:08 +0100)
The dialog will always show up with the last selected application.

configure.ac
gtk/gtkappchooserdialog.c

index 40402924f7522b82052f3b5dbd8d52a3c90e1b96..a77df6e186ed2e4ce188ad1206f364b0bad12c77 100644 (file)
@@ -38,7 +38,7 @@ AC_CONFIG_MACRO_DIR([m4])
 m4_define([gtk_binary_version], [3.0.0])
 
 # required versions of other packages
-m4_define([glib_required_version], [2.27.3])
+m4_define([glib_required_version], [2.27.5])
 m4_define([pango_required_version], [1.20])
 m4_define([atk_required_version], [1.29.2])
 m4_define([cairo_required_version], [1.10.0])
index 60532bb2782f9439f2a919167c0659f3b0019ee2..09f575a76531bceb6e1d398b29a0a127c117ff6a 100644 (file)
@@ -234,9 +234,9 @@ add_or_find_application (GtkAppChooserDialog *self)
   app = gtk_app_chooser_get_app_info (GTK_APP_CHOOSER (self));
 
   /* we don't care about reporting errors here */
-  g_app_info_add_supports_type (app,
-                                self->priv->content_type,
-                                NULL);
+  g_app_info_set_as_last_used_for_type (app,
+                                        self->priv->content_type,
+                                        NULL);
 
   g_object_unref (app);
 }